home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / General / ProNET / src / utilities / pronet-flush.c next >
C/C++ Source or Header  |  1996-07-17  |  460b  |  29 lines

  1. /*
  2.     pronet-flush.c
  3.  
  4.     This command flushes pronet.device
  5.     `avail flush' has no effect at all.
  6.  
  7. */
  8.  
  9. #include <exec/execbase.h>
  10.  
  11. #include <proto/exec.h>
  12.  
  13. void __chkabort(void) {}    /* Disable CTRL-C handling */
  14. ULONG __nocommandline = 0;
  15.  
  16. char versiontag[] = "\0$VER: pronet-flush 36.0 (17.7.96)";
  17.  
  18. int main()
  19. {
  20.     struct Device *pdev;
  21.  
  22.     Forbid();
  23.     if(pdev=(struct Device *)FindName(&SysBase->DeviceList,"pronet.device"))
  24.         RemDevice(pdev);
  25.     Permit();
  26.  
  27.     return(0);
  28. }
  29.